home *** CD-ROM | disk | FTP | other *** search
/ Aminet 16 / Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso / Aminet / misc / emu / Easy1541.lha / Easy1541 / dev / Includes / iec / iec.i < prev   
Text File  |  1996-09-01  |  2KB  |  62 lines

  1. ***********************************************************************
  2. *                                                                     *
  3. * iec.i -- definitions and iec.library base                           *
  4. *                                                                     *
  5. * Copyright (C) 1996 Fabrizio Farenga.  All rights reserved.          *
  6. *                    Email: f.farenga@agora.stm.it                    *
  7. *                                                                     *
  8. ***********************************************************************
  9.  
  10.    IFND  IEC_IECBASE
  11. IEC_IECBASE SET 1
  12.  
  13.  
  14.    IFND  EXEC_TYPES_I
  15.    INCLUDE  "exec/types.i"
  16.    ENDC   ; EXEC_TYPES_I
  17.  
  18.    IFND  EXEC_LISTS_I
  19.    INCLUDE  "exec/lists.i"
  20.    ENDC   ; EXEC_LISTS_I
  21.  
  22.    IFND  EXEC_LIBRARIES_I
  23.    INCLUDE  "exec/libraries.i"
  24.    ENDC   ; EXEC_LIBRARIES_I
  25.  
  26.  
  27. ;STATUS values for the last input/output operations.
  28. ST_OK           EQU $00  ;OK
  29. ST_READ_TIMEOUT EQU $02  ;Timeout reading
  30. ST_TIMEOUT      EQU $03  ;Timeout
  31. ST_EOF          EQU $40  ;End of file
  32. ST_NOTPRESENT   EQU $80  ;Device not present
  33.  
  34. ;Low-Level commands for the 1541
  35. CMD_DATA        EQU $60
  36. CMD_CLOSE       EQU $e0
  37. CMD_OPEN        EQU $f0
  38.  
  39. ;-----------------------------------------------------------------------
  40. ;
  41. ; library data structures
  42. ;
  43. ;-----------------------------------------------------------------------
  44.  
  45. ;  Note that the library base begins with a library node
  46.  
  47.    STRUCTURE IECBase,LIB_SIZE
  48.    ULONG   iec_SysLib
  49.    ULONG   iec_DosLib
  50.    ULONG   iec_SegList
  51.  
  52.    UBYTE   iec_ST        ;Drive STATUS
  53.    UBYTE   iec_pad
  54.    LABEL   IECBase_SIZEOF
  55.  
  56.  
  57. IEC_NAME   MACRO
  58.       DC.B   'iec.library',0
  59.       ENDM
  60.  
  61.    ENDC  ;IEC_IEC_I
  62.